package com.ling.pl.security.feign;

import com.ling.pl.security.model.DefaultPositionVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

/**
 * @author bo.wang
 */
@RequestMapping("/defaultPosition")
@FeignClient(name = "LING-CLOUD-BASE")
public interface DefaultPositionService extends BaseDefaultPositionService {

    @RequestMapping(value = "/loadPositionByUsername", method = RequestMethod.GET)
    public Collection<DefaultPositionVO> loadPositionByUsername(@RequestParam("username") String username);


    @RequestMapping(value = "/uniqueCheck", method = RequestMethod.GET)
    public String uniqueCheck(@RequestParam("id") String id);
}

